from pydantic_settings import BaseSettings
from typing import Optional

class Settings(BaseSettings):
    # JWT设置
    SECRET_KEY: str = "your-secret-key-here"
    ALGORITHM: str = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 30

    # Milvus设置
    MILVUS_HOST: str = "localhost"
    MILVUS_PORT: int = 19530
    MILVUS_USER: Optional[str] = None
    MILVUS_PASSWORD: Optional[str] = None
    MILVUS_COLLECTION: str = "memory_vectors"
    MILVUS_DIMENSION: int = 384  # bge-small-zh 的输出维度

    class Config:
        env_file = ".env"

settings = Settings()
